package pri.damai.xiaowu.common.log.service.impl;

import pri.damai.xiaowu.common.log.model.AuditLog;
import pri.damai.xiaowu.common.log.service.LogOutPutService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 使用日志框架输出日志
 * @Desc
 * @Author DaMai
 * @Date 2021/5/14 14:11
 * 但行好事，莫问前程。
 */
@Slf4j
@Component("slf4j")
public class Slf4jLogOutPutServiceImpl implements LogOutPutService {

    /**
     * @apiNote [附加描述]
     * @param auditLog
     * @return void
     * @author DaMai
     * @date 2021/5/26 11:32
     */
    @Override
    public void outPutLog(AuditLog auditLog) {
        log.info(auditLog.toString());
    }

}
